package de.baumann.browser.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import de.baumann.browser.R
import de.baumann.browser.api.net.vo.gg.Morgage
import de.baumann.browser.utils.StringUtil

class MineMortgageAdapter :BaseQuickAdapter<Morgage,BaseViewHolder>(R.layout.item_mortgage_records){
    override fun convert(helper: BaseViewHolder, item: Morgage) {
        helper.setText(R.id.smelterName,item.address)
        helper.setText(R.id.smelterMortTime,"Mortgage time: ${item.month} months")
        helper.setText(R.id.smelterNums,"${item.createTime}")
        helper.setText(R.id.totalProfit,item.profit)
    }
}